/*访问后台的代码*/
layui.define([], function (exports) {
    var api = {
        updateProduct: function (form, callback) {
            Lib.submitForm("/admin/product/update.json", form, {}, callback)
        },
        addProduct: function (form, callback) {
            Lib.submitForm("/admin/product/add.json", form, {}, callback)
        },
        del: function (ids, callback) {
            Common.post("/admin/product/delete.json", {"ids": ids}, function () {
                callback();
            })
        }

    };
    exports('productApi', api);
});